package com.hang.ixin.dao;

import com.hang.ixin.POJO.ChatMsg;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface ChatMsgDao extends JpaRepository<ChatMsg,String> {
    List<ChatMsg> findAllByIdIn(List<String> list);
    List<ChatMsg> findAllByAcceptUserIdAndSignFlag(@Param("acceptUserId") String acceptUserId,
                                                   @Param("signFlag") Integer flag);
}
